package com.pers.springcould.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Value("${test}")
    private String categoryFile;

    /**
     * hello world
     *
     * @return ResponseEntity
     */
    @GetMapping("/hello-world")
    public ResponseEntity<String> hello() {
        return ResponseEntity.ok("hello world");
    }

    @RequestMapping(value = "list", method = RequestMethod.GET)
    public String updateMgtUserInfoGroup() {
        return categoryFile;
    }
}
